.layer-panel-wp {
  position: relative;
  z-index: 5;
  display: flex;
  width: var(--schema-layer-width);
  height: 100%;
  overflow: hidden;
  background: var(--schema-color-bg-dark);
  border-right: 1px solid #000;
  transition: width .2s ease;
  flex: none;
  flex-direction: column;
  .layer-panel {
    z-index: 9;
    display: flex;
    width: var(--schema-layer-width);
    height: 100%;
    overflow: hidden;
    transition: .2s ease;
    flex-direction: column;
    flex: auto;
    .layer-top {
      position: relative;
      height: 30px;
      line-height: 30px;
      background: var(--schema-color-bg-light);
      user-select: none;
    }
    .layer-action {
      position: absolute;
      top: 0;
      right: 1px;
      letter-spacing: 4px;
      > i {
        text-indent: 0;
        cursor: pointer;
        transition: color 0.2s;
        width: 20px;
        height: 30px;
        display: inline-block;
        &:hover {
          color: #fff;
        }
      }
    }
  }
  &.is-hide {
    width: 0;
    .layer-panel {
      transform: translateX(-100%);
    }
  }
}

.layer-toolbar {
  display: flex;
  height: 32px;
  padding: 0 18px;
  background: #20242a;
  align-items: center;
  justify-content: center;
  flex: none;

  &.layer-toolbar-top {
    border-bottom: 1px solid var(--schema-color-border);
  }
  .toolbar-icon {
    width: 20px;
    height: 20px;
    font-size: 16px;
    color: var(--schema-font-color);
    border-radius: 1px;
    transition: background 0.2s;
    margin: 0 9px;
    line-height: 20px;
    text-align: center;
    background: var(--schema-color-border);

    &.enable:hover {
      color: #fff;
      cursor: pointer;
      background: var(--bin-color-primary) !important;
    }

    &.enable.checked {
      color: #fff;
      background: var(--bin-color-primary) !important;
    }

    &.standard:not(.enable):hover {
      cursor: pointer;
      background: #3a4650;
      opacity: 0.5 !important;
    }
  }
}

.layer-manager-wrap {
  position: relative;
  display: flex;
  width: 100%;
  height: calc(100% - 62px);
  overflow-y: auto;
  font-size: 12px;
  line-height: 2;
  color: var(--schema-font-color);
  list-style: none;
  background: #1d2126;
  user-select: none;
  flex: auto;
  flex-direction: column;

  .layer-manager-item {
    position: relative;
    display: flex;
    width: 100%;
    height: 40px;
    padding: 0 6px;
    padding-left: 8px;
    cursor: pointer;
    background: #1d2126;
    box-sizing: border-box;
    transition: background 0.2s;
    align-items: center;
    flex: none;
    &.hided, &.locked {
      color: #576369;
      background: #1c1f25;
    }

    .layer-item-span {
      width: 124px;
      flex: auto;
      display: flex;
      flex-direction: row;
      align-items: center;
      .layer-item-text {
        flex: 0 1 auto;
        text-indent: 7px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        height: 20px;
        line-height: 20px;
      }
    }

    .layer-item-input {
      width: 100%;
      color: var(--schema-font-color);
      padding: 0 4px;
      height: 20px;
      line-height: 20px;
      background: 0 0;
      border: none;
      outline: 0;
      font-size: 12px;
      text-indent: 2px;

      &:focus {
        color: #fff;
        background: #363c48;
      }
    }

    .show-toggle-btn {
      padding: 0 2px;
      font-size: 18px;
      display: block;
    }

    &.selected {
      color: #fff;
      background: var(--bin-color-primary);
      .show-toggle-btn {
        display: block;
      }
    }

    &.sortable-ghost {
      opacity: 0.4;
    }
  }
  .last-flex-item {
    flex: auto;
    min-height: 40px;
  }

}
